﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="BoardingHouse.aspx.cs" Inherits="Interface.Houses.BoardingHouse" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="le-co-menu">
    <div class="le-co-ti-color">
        <div class="le-co-hi-title"> NHÀ TRỌ</div>
        
    </div>
    <div class="dlQ">
    <asp:Label ID="lbErrors" runat="server" ></asp:Label> 
    <asp:ScriptManager ID="scriptManager" runat="server" />
        <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
            <asp:GridView ID="gridHouse" runat="server" EnableViewState="true" 
            AllowPaging="True" PageSize = "4" AllowSorting="True"
            AutoGenerateColumns="False" 
            AutoGenerateSelectButton="true" CellPadding="4" DataKeyNames="ID" 
            ShowFooter="true" >                       
                <Columns>                                                             
                    <asp:TemplateField>                
                        <ItemTemplate>
                            <div class="ma-de-bor">
                                <div class="left">
                                    <asp:Image ID="imgPost" runat="server" Height="70px" ImageUrl='<%# Eval("Hinh") %>' Width="100px"/> 
                                </div>
                                <div class="right">
                                    <b>
                                        <a href="#"><asp:Label ID="lblDiaChi"  runat="server" Text='<%# Eval("DiaChi") %>' Width="400"></asp:Label></a>  
                                    </b>
                                    <br />
                                    <span class="maukhac">Loại nhà trọ: </span><asp:Label ID="lblLoaiNhaTro" runat="server" Text='<%# Eval("LoaiNhaTro") %>' Width="100" ></asp:Label>
                                    <br />
                                    <span class="maukhac">Liên hệ: </span><asp:Label ID="lblLienHe" runat="server" Text='<%# Eval("LienHe") %>' Width="150" ></asp:Label>  
                                </div>                                                                                            
                            </div>
                            <div class="small-pace"></div>
                        </ItemTemplate>                                       
                    </asp:TemplateField>                     
                </Columns>            
            </asp:GridView>        
        </ContentTemplate> 
    
    
        </asp:UpdatePanel>
    </div>
</div>        
    <asp:Button ID="btnThem" runat="server" Text="Thêm Mới" Visible="false" 
        onclick="btnThem_Click"/>
&nbsp;<asp:Button ID="btnBack" runat="server" Text="Trở Lại" Visible="false"
        onclick="btnBack_Click" />
</asp:Content>
